<?php
/*
Template Name:Oneiro
Description:由【Mr.J】移植于【良心发现】的WP模版 ……
Version:【em1.0 wp1.4.3】
Author:良心发现
simulate Author：Mr.J
Author Url:http://ongakuer.com/
Sidebar Amount:1
ForEmlog:4.1.0
*/
if(!defined('EMLOG_ROOT')) {exit('error!');}
require_once View::getView('module');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title><?php echo $blogtitle; ?></title>
<meta name="keywords" content="<?php echo $site_key; ?>" />
<meta name="description" content="<?php echo $description; ?>" />
<meta name="generator" content="emlog" />
<link rel="EditURI" type="application/rsd+xml" title="RSD" href="<?php echo BLOG_URL; ?>xmlrpc.php?rsd" />
<link rel="wlwmanifest" type="application/wlwmanifest+xml" href="<?php echo BLOG_URL; ?>wlwmanifest.xml" />
<link rel="alternate" type="application/rss+xml" title="RSS"  href="<?php echo BLOG_URL; ?>rss.php" />
<link href="<?php echo TEMPLATE_URL; ?>style.css" rel="stylesheet" type="text/css" />
<script src="<?php echo TEMPLATE_URL; ?>/js/jquery.js"></script>
<script src="<?php echo BLOG_URL; ?>include/lib/js/common_tpl.js" type="text/javascript"></script>
<?php doAction('index_head'); ?>
<!-- Canonical helps with SEO -->
	<!-- 让IE8兼容 HTML5  -->
		<!--[if lt IE 9]>
			<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
		<![endif]-->

    

</head>

<body>
<!--开始页面代码生成了哟-->
<div id="main"><!-- 最底层框架搭建 -->

	<header>
	<div id="header">
        <div class="tcontainer">
         	<div class="bokeh">	                    
                <div id="logo">   
				<h1><a href="<?php echo BLOG_URL; ?>"></a></h1>
			    </div>
				<span style="display:block;overflow: hidden; width: 0; height: 0;">EMLOG点滴记忆博客站点</span>
			</div><!--.bokeh-->
		</div><!--.container-->
	</div>
    </header>
        			<!--导航栏-->
            <div id="navbar">
            	<div id="nav-auto" class="primary">
				<ul id="nav" class="menu">
				<li class="<?php echo $curpage == CURPAGE_HOME ? 'current' : 'common';?>"><a href="<?php echo BLOG_URL; ?>">首页</a></li>
	<?php if($istwitter == 'y'):?>
	<li class="<?php echo $curpage == CURPAGE_TW ? 'current' : 'common';?>"><a href="<?php echo BLOG_URL; ?>t/"><?php echo Option::get('twnavi');?></a></li>
	<?php endif;?>
	<?php 
	foreach ($navibar as $key => $val):
	if ($val['hide'] == 'y'){continue;}
	if (empty($val['url'])){$val['url'] = Url::log($key);}
	?>
	<li class="<?php echo isset($logid) && $key == $logid ? 'current' : 'common';?>"><a href="<?php echo $val['url']; ?>" target="<?php echo $val['is_blank']; ?>"><?php echo $val['title']; ?></a></li>
	<?php endforeach;?>
	<?php doAction('navbar', '<li class="common">', '</li>'); ?>
	<?php if(ROLE == 'admin' || ROLE == 'writer'): ?>
	<li class="common"><a href="<?php echo BLOG_URL; ?>admin/write_log.php">写日志</a></li>
	<li class="common"><a href="<?php echo BLOG_URL; ?>admin/">管理中心</a></li>
	<li class="common"><a href="<?php echo BLOG_URL; ?>admin/?action=logout">退出</a></li>
	<?php else: ?>
	<li class="common"><a href="<?php echo BLOG_URL; ?>admin/">登录</a></li>
	<?php endif; ?>
	             </ul>

	
		
	
 <!-- editable within the Wordpress backend -->
				</div>
                <div id="search">
                <div id="search-bg">
				<span id="navulbghack">
				</span>
<form method="get" id="searchform" class="search" action="<?php echo BLOG_URL; ?>index.php">
<div>
<input name="keyword" type="text" id="s" onblur="if(this.value ==&#39;&#39;)this.value=&#39;Search...&#39;;this.className=&#39;search_text&#39;;" onfocus="this.value=&#39;&#39;;this.className=&#39;search_textfocus&#39;;" onclick="if(this.value==&#39;Search...&#39;)this.value=&#39;&#39;" value="Search..." class="search_text">
<input type="submit" name="button" id="logserch_logserch" value="" class="search_submit" onmousemove="this.className=&#39;search_submithover&#39;" onmousedown="this.className=&#39;search_submitactive&#39;" onmouseout="this.className=&#39;search_submit&#39;">
</div>
</form>


</div> 
                </div>
            </div>
			<!--导航栏结束-->